export default {
    namespaced: true,
    state: {
        //用来表示登录或者购物车按钮之间的转换  购物车显示true或者隐藏false
        isShowCart: localStorage.getItem("x-auth-token") ? true : false
    },
    getters: {},
    mutations: {
        // 修改isShowCart的值
        chanIsShowCart(state, payload) {
            state.isShowCart = payload
        }
    },
    actions: {},
}